Pulse height defect for Al27 and Mg24 ions in silicon surface barrier detectors