DFT study of the stability of oxygen vacancy in cubic ABO3 perovskites