Hydrothermal waves in two-dimensional liquid layers with sudden changes in the available cross-section