An Electromechanical Generator for Converting Mechanical Vibrational Energy into Electrical Energy