Measurement of the energy response function of a silicon pixel detector readout by a Timepix chip using synchrotron radiation