Static and dynamic coupled fields in bodies with piezoeffects or polarization gradient