Ergodic characterization of nonergodic anomalous diffusion processes