Phase transition of light on complex quantum networks.