Quantum mechanical force calculations in solids: The phonon spectrum of Si