Ripon man who tried to meet underage girls pleads guilty to carrying knife