Imposing long-range ferromagnetic order in rare-earth-doped magnetic topological-insulator heterostructures