Two-component interacting Tonks-Girardeau gas in a one-dimensional optical lattice