Tuning of the electronic and transport properties of phosphorene nanoribbons by edge types and edge defects