Fingerprinting based localization of mobile terminals