An optical switch based on a Mn–CuInS thin film