The Tractor: measuring astronomical sources via probabilistic inference