Accounting for prompt gamma emission and detection for range verification in proton therapy treatment planning. (12th February 2021)