Theoretical analysis of free convection in a partially foam-filled enclosure