On the measurability of functions of two variables