In 18th century why did the local rulers grow in power?