Shear thickening and history-dependent rheology of monodisperse suspensions with finite inertia via an immersed boundary lattice Boltzmann method