Green function theory of dipole-dipole interaction in the spin-12 paramagnetic resonance spectra of crystals