Comparison of the beta spectra of B12 and N12