Linnik's ergodic method and the distribution of integer points on spheres