A model for energy pricing with stochastic emission costs