Comparison of the AH stretching band profiles for hydrogen-bonded complexes in matrices and solutions