Study finds 'collateral damage' of same-sex schools