On structural and temporal credit assignment in reinforcement learning