Seiberg-Witten invariants and periodic Dirac operators