Proton motion in HNbO3 and HTaO3