Man who used stolen cards to buy fast food jailed for six years