Electronic and crystal structure changes induced by in-plane oxygen vacancies in multiferroic YMn O 3