Crystallization in hybrid organic-inorganic materials induced by self-organization in basic conditions