Smart Factories: ICT for agile and environmentally friendly manufacturing