Light-guided evolution creates proteins that can switch, sense