The conservation laws and path-independent integrals with an application for linear electro-magneto-elastic media