A generalized method for the inherent energy performance modeling of machine tools