Future Trends in Manufacturing: Smart Factories and Industry 4.0