The founder of Russia’s biggest social network lost his $2-billion company to politics. Here’s what he learned