The maximum momentum of particles accelerated at cosmic ray modified shocks