Former Crystal Lake attorney sworn in as McHenry County circuit judge