Data-Driven Cost Optimisation Of Microgrid Energy Management Systems Using Reinforcement Learning Approach