Synchronous rotation in AM Herculis systems. I, Equilibrium configurations