The temperatures of red supergiants in low-metallicity environments