A Safety-Adapted Loss for Pedestrian Detection in Automated Driving