FTSE 100 ends in green, fuelled by gains in oil and mining stocks