Apple under fire for running out of iphone batteries as part of discount program