It isn’t easy to measure how effective homework can be. But here’s what we do know