Design, synthesis and properties of near-infrared molecular switches containing a fluorene ring.