Controlled growth of SnSe/MoS2 vertical p–n heterojunction for optoelectronic applications