A partitioned correlation function interaction approach for describing electron correlation in atoms