Lumpability in compartmental models