Structural diversity, magnetic properties, and luminescent sensing of four coordination polymers based on 6-(3,5-dicarboxylphenyl)nicotinic acid