simulation of an electromechanical energy scavenging device