Response of a germanium detector to energetic heavy ions