Asymmetry of electron and hole doping in YMnO3