The choice of basis set for calculations of linear and nonlinear optical properties of conjugated organic molecules in gas and in dielectric medium by the example of p-nitroaniline