Affordance switching in self-organizing brain-body-environment systems