Spain's Rajoy visits Catalonia after imposing direct rule