Design and calibration of a neutral particle analyzer for the KSTAR