First use of Timepix3 hybrid pixel detectors in ultra-high vacuum for beam profile measurements