A coupled-mode theory for periodic piezoelectric composites