X-ray versus Ultraviolet Irradiation of Astrophysical Ice Analogs Leading to Formation of Complex Organic Molecules