Spontaneous formation of inorganic helices