Method for production of polymeric nanofibers by spinning of solution or melt of polymer in electric field