Cumulant approach to the Anderson impurity model