Smart factories: The future of manufacturing