Inertial Encoding Mechanisms And Flight Dynamics Of Dipteran Insects