Atom lithography with two-dimensional optical masks