Steady motion of underwater gliders and stability analysis