An information-theoretic study of problems in wireless relaying