Computational study of the effect of Al and In on the formation energies and acceptor levels of Mg and C dopants in GaN