Termination control of magnetic coupling at a complex oxide interface