Apple apologizes for slowing iPhones, offers discounted batteries