Maximum-likelihood estimation of misspecified models