Aerodynamic drag and geomagnetic perturbations: their modelling and effect on spacecraft dynamics