A low-cost integrated navigation system based on factor graph nonlinear optimization for autonomous flight