Gerdt, Pavel Andreevich, 1844-1917