Diagonalization of elliptic systems via pseudodifferential projections