Semiconductor-metal transition in semiconducting bilayer sheets of transition metal dichalcogenides