Optimisation of System and Sensor Selection for Safety and Reliability of Autonomous Vehicle