Determination of the electric field gradient tensor by 2D NQR