Internal wave reflections and transmissions arising from a non-uniform mesh. Part II: A generalized analysis for the Crank–Nicolson linear finite element scheme