Training autonomous vehicles to cope with adverse weather