Tunable Magnetic Interaction at the Atomic Scale in Oxide Heterostructures