The energy of dilute Bose gases