Simulation of high-energy proton production by fast magnetosonic shock waves in pinched plasma discharges