Design principles for optical molecular sensors and photocontrolled receptors based on crown ethers