A measurement procedure for the optimization of a distributed indoor localization system