Police in Spain test robot dog to enforce traffic laws