Text this: Reconfigurable two-dimensional optoelectronic devices enabled by local ferroelectric polarization