The role of partitioning of reagents in grafting and curing reactions initiated by ionizing radiation and UV