Reaching Trusted Byzantine Agreement in a Cluster-based Wireless Sensor Network