Optimal Control of Energy Systems in Net-Zero Energy Buildings Considering Dynamic Costs: A Case Study of Zero Carbon Building in Hong Kong