Out-of-Distribution Detection for Safety Assurance of AI and Autonomous Systems