Diagnosis of the soft X-ray spectrum emitted by laser-plasmas using a spectroscopic photon sieve