Vapor clouds generated by laser ablation and hypervelocity impact