Spectroscopic properties and potential energy curves of SnCl: Comparison with PbCl