Flexibility and frictions in multisector models