A controlled beam element for FEM simulation of beams with piezoelectric devices