New ranking finds 8 Brooklyn schools on list of 40 best public high schools in NYC