Interaction of n-type dopants with oxygen in silicon and germanium