Four cubes of volumes $1 \text{ cm}^3$, $2 \text{ cm}^3$, $3 \text{ cm}^3$, and $4 \text{ cm}^3$ are glued together at their faces. What is the number of square centimeters in the smallest possible surface area of the resulting solid figure?