Modeling Energy Demand using Nonparametric and Extreme Value Theory