Activity-driven plasticity of visual cortex circuits in physiological and pathological conditions