Uncertainty estimation in equality-constrained MAP and maximum likelihood estimation with applications to system identification and state estimation. (June 2020)