The growth on Pope Leo's lung was cancerous, the Vatican has said.