Modeling of water radiolysis at spallation neutron sources