Electronic structure of YMn2O5 studied by EELS and first-principles calculations