How did people in athens and sparta obtain the right to participate in public life and make decisions affecting the community?