Analytical Model of a Vibrating Electromagnetic Harvester Considering Nonlinear Effects