Distributed dynamic coalition formation for bearings-only localization in wireless sensor networks