Boys who raped girls get custodial sentences after appeal