Discovery of magnetic fields in the βCephei star ξ1 CMa and in several slowly pulsating B stars