Costa and Nolito earn Spain hard-fought win in Albania