Coordination of Electrical and Heating Resources by Self-Interested Agents