Effects of oxygen incorporation in p-type AlN crystals doped with carbon species