Text this: Numerical prediction of the effective thermal conductivity of open- and closed-cell foam structures