Braking strategy for an autonomous vehicle in a mixed traffic scenario