Programmable lattices of optical vortices in nematic liquid crystal