Sliding Mode Control of a Mobile Robot for Dynamic Obstacle Avoidance Based on a Time-Varying Harmonic Potential Field