A local Lagrangian for MOND as modified inertia