Closed-population capture--recapture models with measurement error and missing observations in covariates