Tuning the workfunction of ZnO through surface doping with Mn from first-principles simulations