Static and dynamic responses of a piezoelectric semiconductor beam under different boundary conditions