Magnetohydrodynamic energy generation and flow control for planetary entry vehicles