A generative spatial adaptation model for constrained-based housing transformations