Loss-of-Control Detection of a Quadrotor Using Critical Slowing Down Theory