A semiempirical intrinsic-germanium detector response for beta rays from 4 to 8 MeV