Mid-infrared emission of galactic nuclei. TIMMI2 versus ISO observations and models