Polarimetry at millimeter wavelengths with the NIKA camera: calibration and performance