Square pattern formation in a gas discharge system