Applications of energy storage and storage of energy obtained from photovoltaics