Quenching the bandgap of two-dimensional semiconductors with a perpendicular electric field