Monte Carlo method for constructing confidence intervals with unconstrained and constrained nuisance parameters in the NOvA experiment | Synapse