Preparation and in-system study of SnCl2 precursor layers: towards vacuum-based synthesis of Pb-free perovskites