A general tetrakaidecahedron model for open-celled foams