Relay Beamforming in Networks with Perfect Channel Information