The PAU survey: photometric calibration of narrow band images