An Improved Spray and Wait Routing Algorithm Based on Node Performance in Delay Tolerant Networks