Ion irradiation triggers the formation of the precursors of complex organics in space - The case of formaldehyde and acetaldehyde