Like Carlos Ghosn before him, Ivan Espinosa is trying to return the carmaker to profitability—and ensure it survives.