A FE2 based approach for multiscale modeling and design of energy harvesting devices