Bandgap Narrowing and Its Effects on the Properties of Moderately and Heavily Doped Germanium and Silicon