who was the king of portugals son who granted independence to brazil?