Formation of amino acid precursors in cometary ice environments by cosmic radiation