Electric-field-induced phase transformations in lead-free piezoelectric ceramics