Application Specific Integrated Circuits for High Resolution X and Gamma Ray Semiconductor Detectors