Porphyrin based hybrid meterials:photophysical structural characterization and applications and HCI gas sensors