Molecular-dynamics study of energy flow and the Kapitza conductance across an interface with imperfection formed by two dielectric thin films