Local variational study of 2d lattice energies and application to Lennard–Jones type interactions