Energy management in hybrid systems coupling PV and electrical storage