Electronic structure of bulk and surface vanadyl oxygen vacancies in the layer compound V2O5