Use of Wi-Fi sensor network in measuring occupancy and people circulation in buildings