A methodology for power consumption evaluation of wireless sensor networks