Performance Analysis of the Amplify-and-Forward Scheme under Interference Constraint and Physical Layer Security