Text this: Optimizing time and power allocation for cooperation diversity in a decode-and-forward three-node relay channel