The energy cost of walking or running on sand