Automatic registration of ceramic tiles for the purpose of fault detection