Dynamic modeling and control of a hybrid electric quadrotor powertrain and thermal management system