Optimising power quality, by means of energy storage, for stand-alone renewable and hybrid systems and for transport Optimising power quality, by means of energy storage, for stand-alone renewable and hybrid systems and for transport