Apple to settle class action lawsuit on in-app purchases by minors