Three-dimensional analysis of freely vibrating multilayered piezoelectric plates through adaptive global piecewise-smooth functions