Framework for Studying Stability of Switching Max-Plus Linear Systems