Understanding doped perovskite ferroelectrics with defective dipole model.