Axioms for work and energy in general continua