Performance of an imaging system based on silicon pixel detectors of different thickness