A feature-based prediction method for energy consumption of machining process and its application