Laser-induced surface reconstruction of semiconductors and metals