Stationary and on-board storage systems to enhance energy and cost efficiency of tramways