Computation of the effective nonlinear mechanical response of lattice materials considering geometrical nonlinearities