Nanogenerator for Harvesting Energy