Measuring chemical abundances with infrared nebular lines: HII-CHI-MISTRY-IR