NICMOS measurements of the near-infrared background