Added density calculation for 2D lattice

The 2D Lattice trap type will now give a density measure for each shot.
Also, I found an error in the 2D Lattice temperature calculation, which
has been fixed.

DSB