Harvesting energy from the vibration of a passing train using a single-degree-of-freedom oscillator