Properties of carbon as an acceptor in cubic GaN