Energy Deposition into a Collisional Gas from Optical Lattices Formed in an Optical Cavity