Analysis of piezoelectric actuators under mechanical and electrical loads