What factors influenced the scope of voting rights in ancient Athens?