A switching element for photonic self-routing interconnection networks