The dynamic problem of thermoelectroelasticity for functionally graded layer