Closed-form solutions for forced vibrations of piezoelectric energy harvesters by means of Green’s functions