Emperor who ruled Russia before 1917