Ollie Pope produced a determined century to steady as England rallied back against India on Day Two of the first Test at Headingley.