A defendant may waive the right to counsel when the court ascertains that the waiver is made knowingly, voluntarily, and intelligently.