Relation of local order to material properties in ferroelectrics