Heavy ion damage in silicon and germanium