Mechanism of the piezoelectricity of langasite based on the crystal structures