Interfacial magnetism in topological insulator heterostructures