Nets defeat Celtics at Barclays Center