Cardinals acquire Masterson from Indians