The twistor-geometric representation of classical field theories