Co-Design of Out-of-Distribution Detectors for Autonomous Emergency Braking Systems