Codifference can detect ergodicity breaking and non-Gaussianity