Polygonal model for layered inorganic nanotubes