Optical and electrical characterization of Cadmium Telluride X-ray pad detectors