Typological regularities in the history of phonetic system: about the fate of medium sounds in Proto-Slavic period