Statistics for Modelling, Design, and Control of Energy Systems: A Data-Driven Approach