Erbium dopants in nanophotonic silicon waveguides