Text this: On the optimum parameters of a device for harvesting energy from running and walking