Cooperative Protocols for Relay and Interference Channels with Half-Duplex Constraint