Tutorial: Integrated-photonic switching structures