Spain seeks ways to end Catalan conflict: Official