Structural mechanism of endonucleolytic processing of blocked DNA ends and hairpins by Mre11-Rad50.