Constrained Relay Node Placement in Wireless Sensor Networks to Meet Connectivity and Survivability Requirements