Spain to maintain capabilities required by NATO, premier says