Negative differential thermal resistance effect in a macroscopic homojunction