Developing an advanced collision risk model for autonomous vehicles