Thin CdTe detectors mounted in back-to-back configuration: spectroscopic performance for low-energy X- and gamma-rays