Text this: Optimizing the Spectrum and Power Allocation for D2D-Enabled Communication Systems Using DC Programming