Robust Localization for 3D Object Recognition Using Local EGI and 3D Template Matching with M-Estimators