Analytical studies of two-component Bose-Einstein condensates in two-dimensional optical lattices