Optical characterization of heavily doped silicon