Anisotropic atom–atom potentials from X-ray charge densities: application to intermolecular interactions and lattice energies in some biological and nonlinear optical materials