Piezoelectric energy harvesting: modeling, optimization, and experimental study of transient charging behavior