Variable-weighted ultrametric optimization for mixed-type data: continuous, ordinal, nominal, binary symmetric and binary asymmetric