Integral structures, toric geometry, and homological mirror symmetry