Method and device for echo cancellation