The near-infrared excitation of the HH 211 protostellar outflow