Text this: Optimization frameworks for bespoke sensory encoding in neuroprosthetics