First-principles study of structural, elastic, electronic and optical properties of RDX under pressure