Text this: Nanoscale electrostatic control in ferroelectric thin films through lattice chemistry