Defects and charge transport in perovskite ferroelectrics