Reconstruction-guided attention improves the robustness and shape processing of neural networks