Phase diagram calculations of the UPuN system with carbon and oxygen impurities