Design of a nonlinearity-corrected spectrometer based on curved prism