An approximate treatment of long-range interactions in proteins