Intertwining operators among modules for affine Lie algebra and lattice vertex operator algebras which respect integral forms