Flapping-wing robot achieves self-takeoff by adopting reconfigurable mechanisms