Laser ablation of metals and ceramics in picosecond–nanosecond pulsewidth in the presence of different ambient atmospheres