Messi double gives Barcelona narrow win over brave Spartak