Adaptive Equalization and Capacity Analysis for Amplify-and-Forward Relays