Cloud and machine learning experiments applied to the energy management in a microgrid cluster