A Monte Carlo-based treatment planning tool for proton therapy