Inferring critical transitions in paleoecological time series with irregular sampling and variable time-averaging