Classical Lagrangians for the nonminimal Standard-Model Extension at higher orders in Lorentz violation