Phase diagram of carbon and the factors limiting the quantity and size of natural diamonds