Retrosynthesis in inorganic crystal structures: application to nesosilicate and inosilicate networks