Hydrogenation of semiconductor surfaces: Si and Ge(111)