A method for manufacturing a layer of perovskite material, and apparatus having such a layer