Forwarding Strategies and Optimal Power Allocation for Relay Networks