Rule-Based Path Finding Algorithm for Part Assembly and Its Extension to Mobile Robot Path Planning