Adaptive FETI-DP and BDDC methods with a generalized transformation of basis for heterogeneous problems | Synapse