Compact Gravimeter with Spin-Squeezed Atoms in Optical Lattices