Distributed estimation in heterogeneous reduced rank regression: With application to order determination in sufficient dimension reduction