Text this: Structural and electronic effects of an Nb impurity in PZT crystals