A criminal defendant is entitled to a reasonably competent attorney whose advice is within the range of competence of attorneys in criminal cases.