Optical constants of germanium and gray tin the k. p method