Approximate dynamic boundary conditions for a thin piezoelectric layer