The floor joists of the first floor are sitting directly in breaks in the concrete/cinderblock walls, and there's large gaps all around the edges. I've done some looking around and it appears that these are a large source of air loss, so I need to insulate them. Can I just spray some expanding foam in that area, or is it better to get some rigid foam, cut it, and then just use foam to seal the edges where it meets the joists/wall? What about a vapor barrier?