Steady-state harmonic resonance of periodic interfacial waves with free-surface boundary conditions based on the homotopy analysis method