Pressure-induced ferroelectric and electronic transitions in two-dimensional ferroelectric semiconductor of NbOCl2 up to 41.7 GPa