Near-wall dynamics of arbitrarily shaped particles in a laminar flow