Quantum tomography of a single-photon state by photon-number parity measurements