CsI-photocathode in-situ monitoring system in gaseous and noble-liquid photomultipliers