A statistical indoor localization method for supporting location-based access control