General synthesis of inorganic single-walled nanotubes