ULF magnetic power spectra in the magnetosheath and magnetosphere