An algorithm for modelling the manufacturing plant based on energy performances and productivity KPIs