Dynamical Behavior and Second Harmonic Generation Responses in Acido-Triggered Molecular Switches