Optimal Route Planning with Mobile Nodes in Wireless Sensor Networks