Extension of the weak-line approximation and application to correlated-k methods