Necessary and sufficient conditions for convergence of DREM-based estimators with applications in adaptive control