Ion hydration effects in the optical absorption and molecular vibration of water