A hyperpure germanium detector for precise beta endpoint energy determinations