Cooperative Localization in WSNs: a Hybrid Convex/non-Convex Solution