Studies of the spectral and angular distributions of transition radiation using a silicon pixel sensor on a Timepix3 chip