Autonomous aerial perching and unperching using omnidirectional tiltrotor and switching controller