Text this: Efficient exploration of electronic and dielectric properties using advanced first-principles analysis grounded in modern theory of polarization: Application to PbTiO3