Self-Organizing Energy Aware Clustering of Nodes in Sensor Networks Using Relevant Attributes