KZ equations and Bethe subalgebras in generalized Yangians related to compatible R-matricesстатья