Joint Network Coding and Opportunistic Scheduling for the Bidirectional Relay Channel