Electronic structure of transition metal impurities in p-type ZnO