Mechatronic design of adaptive manufacturing systems