Joe Root registered a superb maiden Ashes century as England constructed a mammoth lead on day three of the second Ashes Test at Lord's.