Normal-mode solution for the seismic noise cross-correlation method