Electronic and mechanical properties of monocrystalline silicon doped with trace content of N or P: A first-principles study