Artificial Intelligence Applications in Mechanical Engineering: A Pathway to Industry 4.0