Frustrated magnetism of spin- 12 Heisenberg diamond and octahedral chains as a statistical mechanical monomer-dimer problem