Ultraviolet and optical spectroscopic studies of lambda Andromedae: the chromosphere and interstellar medium.