A methodology to design a knowledge-based tool for residential buildings simulation