Iberdrola profit boosted by US, Brazil, offsetting Spanish woes