Elastic energy, thermal fluctuation and depinning of the vortex lattice in high-Tcsuperconductors