Shock interactions with magnetized interstellar clouds. 1: Steady shocks hitting nonradiative clouds