Three-dimensional natural convection in a cubical enclosure with walls of finite conductance