Production of nanoparticles of different materials by means of ultrashort laser pulses