An exergy based approach to resource accounting for factories. (10th May 2016)