Relation between Elastic Constants and Second- and Third-Order Force Constants for Face-Centered and Body-Centered Cubic Lattices