Solid organic residues produced by irradiation of hydrocarbon-containing H2O and H2O/NH3 ices: Infrared spectroscopy and astronomical implications