Magnetooptic effects in a YAG:Nd3+ring laser with a nonplanar resonator