A Characterisation of Optimal Channel Assignments for Wireless Networks Modelled as Cellular and Square Grids