Approximations of the packet error rate under slow fading in direct and relayed links