MASTER THESE AT THE CERN PROTON SYNCHROTRON Simulation of beam losses during high intensity extraction at the CERN Proton Synchrotron