Density Functional Theory and X-ray Investigations of P- and M-Hexamethylene Triperoxide Diamine and Its Dialdehyde Derivative