The formation of Russian spelling in the XVII-XIX centuries: writing and codification