Preparation of semiconductor nanospheres by laser-induced phase separation