Gun, meth charges lead to 18-year sentence for Jerseyville man