From impotence to authority: The Spanish Crown and the American audiencias, 1687-1808