Apple to give free cases, refunds to iPhone 4 owners