A Matheuristic Approach for Resource Scheduling and Design of a Multi-energy System