Localization and Identification of a Person in an Indoor Environment Using a Low-Cost ZigBee Based Gateway System