Text this: Relay-based resource allocation in cognitive networks