The X-ray spectra of the Crab Nebula and NP 0532