Gravar-mail: Automatic lattice determination for two-dimensional crystal images