Three-sphere Magnetic Swimmer in a Shear Flow