N2H+ depletion in the massive protostellar cluster AFGL 5142