Gossiping in WDM all-optical square mesh networks