Calculation of point-defect entropy in metals