A Novel Approach to Indoor RSSI Localization by Automatic Calibration of the Wireless Propagation Model