Learning-Based Automation of Robotic Assembly for Smart Manufacturing