Smart electrification of aviation