Copula selection and fitting using maximum likelihood