Magnetic Phase Diagram of Transition Metal Doped ZnO from Density Functional Theory Calculations and Monte Carlo Simulations