The effect of pressure on the optical absorption edge of germanium and silicon