Characterization of Si pixel detectors of different thickness