Messi free-kick goal puts Barca in Copa del Rey quarters