Roles of the Excitation in Harvesting Energy from Vibrations