Stochastic averaging based on generalized harmonic functions for energy harvesting systems. (1st September 2016)