Incorporation of porous protective layers as a strategy to improve mechanical stability of Tamm plasmon based detectors