When did the sovereignty of szlachta end