Until what event did the ancient methods of spinning and fabrication of cotton last?