Engineering design toward exploring the functional group substitution in 1D channels of Zn-organic frameworks upon nitro explosives and antibiotics detection.