Apple smashed Wall Street forecasts as strong sales of its iMacs and the explosive launch of the iPhone sent its profits up 36% to $1.05bn. By Andrew Clark in New York