Gravar-mail: Particle swarm optimization in WDM/OCDM networks with physical impairments