Memory-efficient Learning for Large-scale Computational Imaging