Contributions to the financial mathematics of energy markets