Periodic Green functions for 2D magneto-electric quadrupolar arrays: explicitly satisfying the optical theorem