Similar folds with different stabilization mechanisms: the cases of prion and doppel proteins