Energetics of large lattice strains: Application to silicon