A density-functional theory investigation of 3-nitro-1,2,4-triazole-5-one dimers and crystal.