I went from sedentary academic to 100-mile marathon runner—thanks to the science of self-control