who granted independence for brazil?