A single-photon CCD-based setup for in situ measurement of the X-ray spectrum of mammographic units