Bandgap engineering in semiconducting one to few layers of SnS and SnSe