who declared the independence of brazil in 1822?