Direct momentum determination of a medium-energy particle beam using time-of-flight and range techniques