Device harvests energy from train tracks