Estimating the Allan variance in the presence of long periods of missing data and outliers