Dilute Magnetic Semiconductor and Half-Metal Behaviors in 3d Transition-Metal Doped Black and Blue Phosphorenes: A First-Principles Study