Efficient wavefront sensing and control for space-based high-contrast imaging