An Agent-based Stock-flow Consistent Model of the Sustainable Transition in the Energy Sector