Radiation of a uniformly moving line charge in a zero-index metamaterial and other periodic media