Defect absorption and optical transitions in hydrogenated amorphous silicon