Forming piezo-electric or electrostrictive materials