Oil extends gains after a decline in US crude stocks