Stanislav Petrov, who averted possible nuclear war, dies at 77