Shallow versus deep nature of Mg acceptors in nitride semiconductors.