Calculations on nonlinear optical properties for large systems : the elongation method (2015)