Vacuum ultraviolet and X-ray emission spectroscopy of anion and cation excitons in oxide crystals