Variance optimal hedging with application to electricity markets