Integral representation results for energies defined on stochastic lattices and application to nonlinear elasticity