On modelling and analysis of piezoelectric smart structures by the finite element method