Influence of magnetic fields on the response of acrylic scintillators