Identification and yield of carbonic acid and formaldehyde in irradiated ices