Text this: Visual Aftereffects and Sensory Nonlinearities from a single Statistical Framework