Use of cluster expansion techniques in quantum chemistry. A linear response model for calculating energy differences