Jonny Bairstow secured his third Test century in a row with his ton against India on day three of the fifth Test against India at Edgbaston.