Long range corrections to thermodynamic properties of inhomogeneous systems with planar interfaces