Influence of carrier injection on the metal-insulator transition in electron- and hole-doped R1-xAxNiO3 perovskites.