Text this: Effect of different signal weighting function of magnetic field using KNN for indoor localization