Switching control of an underwater glider with independently controllable wings