VLT spectroscopy and non-LTE modeling of the C/O-dominated accretion disks in two ultracompact X-ray binaries