Inverted-U function relating cortical plasticity and task difficulty