Charlesworth century leads Gloucestershire charge on day two