Atletico Madrid's Brazil-born striker Diego Costa has officially committed his international future to Spain.