Influence of medium- and long-range interactions in different folding types of globular proteins.