Black boxes hold critical data that helps investigators understand plane crashes. Here’s how they work and why they’re key to aviation safety.