maxlik: a package for maximum likelihood estimation in r