A probabilistic approach to direction-dependent ionospheric calibration