Distributed Partitioning Algorithms for Multi-Agent Networks with Quadratic Proximity Metrics and Sensing Constraints