Get the number of environmental variables given the number of parameters
num_env_var.RdInverts num_par(p) to recover p from n, the number of
parameters of the main xsdm model. Uses the closed-form solution of the
quadratic: \(2n = p^2 + 5p + 4\), i.e. \(p = (-5 + \sqrt{9 + 8n})/2\).
Errors if \(n\) is not a valid value of num_par(p) for some integer
\(p \ge 1\).