Power control and beamforming for systems with multiple transmit and receive antennas