Optimal Control of Two-Wheeled Mobile Robots for Patrolling Operations