First-principles calculations and Bader analysis of oxygen-deficient induced magnetism in cubic BaTiO3−x and SrTiO3−x