Characterisation and optimisation of energy storage installations for low voltage networks and EV chargers