Protection and Restoration in Optical Networks with Arbitrary Mesh Topologies