First principles study of structural, elastic, mechanical and electronic properties of nitrogen-doped cubic diamond