The effects of nodes spatial distribution on the performance of wireless sensor networks