Undergraduate experiment: Determination of the band gap in germanium and silicon