Protein sensors and transducers of cold and osmotic stress in cyanobacteria and plants