Photoluminescence Switching Effect in a Two-Dimensional Atomic Crystal.