A DOA Estimation Approach for Transmission Performance Guarantee in D2D Communication