The two-way Mundlak estimator