Indoor localization method based on WiFi signals and building layout model