Solid phase synthesis of pyridine derivatives and studies on their corrosion inhibitory and biological activities