Energy resolutions of a position-sensitive NaI detector by Monte Carlo simulations