Higher order interfacial effects for elastic waves in one dimensional phononic crystals via the Lagrange-Hamilton's principle