Ab initio calculation of the structural and elastic properties, anisotropy, and hardness of nitrogen-doped diamond