Charge distribution and second-order nonlinear optical response of charged centrosymmetric chromophore aggregates. An ab initio electronic structure study of p-nitroaniline dimers