Gravar-mail: Optimizing the Reliability and Performance of Service Composition Applications with Fault Tolerance in Wireless Sensor Networks