An Indoor Localization System for Telehomecare Applications