who was brazil's independence declared by in 1822?