Defect calculations in semiconductors through a dielectric-dependent hybrid DFT functional : the case of oxygen vacancies in metal oxides