The Path Towards the Modern Economy. The Role of Energy