Assembly line design and optimization