Lattice $F$-transform for functions in two variables