Geometry of nonlinear field theories