On the global convergence of a class of distributed algorithms for maximizing the coverage of a WSN