Band gap opening in stanene induced by patterned B-N doping.