Development of a remaining flight energy estimation algorithm to optimise energy management of electric vertical take-off and landing aircraft