Theoretical studies on hydrogen bonding and halogen bonding interactions and their effects on structure and vibrational properties of molecules