Valencies of Mn impurities in ZnO