Change in interface magnetism of an exchange-coupled system due to the presence of nonmagnetic spacers