Macs, iPhones sweeten Apple's 2Q