Protein folding, unfolding, and phase diagrams with coarse-grained models