The role of volatiles and lithology in the impact cratering process