Convex Optimization Algorithms for Cooperative Localization in Autonomous Underwater Vehicles