Text this: Adaptation to criticality through organizational invariance in embodied agents