Mathematical investigation of the elastic deformation in dielectric and piezoeletric bodies under the influence of electrical and mechanical fields