Convex Optimization of Cognitive Radio Networks