Thermodynamic evolution of materials during laser ablation under pico and femtosecond pulses