PRECESSION OF A PARTICLE WITH ANOMALOUS MAGNETIC MOMENT IN ELECTROMAGNETIC AND GRAVITATIONAL PP-WAVE FIELDS