Performance Evaluation of a Software-Defined Wireless Sensor Network