Energy, metastability, and optical properties of anion-disordered R Ox H3-2x (R= Y, La) oxyhydrides