Role assignment in wireless sensor networks : energy-efficient strategies and algorithms