Spectroscopy of Ba and Ba+ deposits in solid xenon for barium tagging in nEXO