compute_nll function

Compute negative log-likelihood for EcoState model