Porphyrin based hybrid materials: photophysical, structural investigation and applications as optical materials and HCL gas sensors