Substitutionally doped phosphorene: electronic properties and gas sensing | Synapse