Subcarrier and Power Allocation in OFDM-based Cognitive Radio Systems