Weak magnetism and the beta spectra of 12B and 12N