Compute coarsening policies for meshing a layered model.
This function determines the coarsening policies for a given layered model
based on the domain, mesh resolution, and an optional interlayer coarsening
policy. It evaluates the minimum layer thickness and the maximum element
size reduction across layers to decide the appropriate coarsening strategy.