Controlling magnetic structure in extended solids using targeted chemical compositions