Electromechanical properties of ferroelectrics with diffuse phase transition