Optimal performance and sizing of a battery-powered aircraft