Laser investigation of some oxazole and oxadiazole derivatives