Euclid: IV. The NISP calibration unit