Inversion of circulant matrices over Zm