What was one name of a power that the szlachta was dependent on.