Molecular bases of protein halotolerance