Manganese Impurity in Boron Nitride and Gallium Nitride