State-independent quantum tomography of a single-photon state by photon-number-resolving measurements