A Monte Carlo track structure code for electrons (~10 eV-10 keV) and protons (~0.3-10 MeV) in water: partitioning of energy and collision events