Secure Topology Maintenance Protocols for Wireless Sensor Networks