Magnetic observations of pulsating B and Be stars with ESPaDOnS and Narval