Quantification of safety improvements and human-machine tradeoffs in the transition to automated driving