Beverly mounts late comeback to down Gloucester in marquee NEC softball matchup