A Markov-modulated fluid system with two interacting reservoirs