Energy Optimization Algorithm for Path Selection in Wireless Body Sensor Networks