Energy formula for Newman-Unti-Tamburino class of black holes