Flexible Vertical Federated Learning with Heterogeneous Parties