Use of electrochemical storage in substations to enhance energy and cost efficiency of tramways