Four billion people now live in democracies, data shows