Application of computer-based environmental assessment and optimization tools: an approach for appropriating buildings