Spectral, structural and theoretical study of novel helical and linear structures of PbI2 and PbBr2 complexes with a triazine ligand