Root century puts England in command against West Indies