A Unified Theory of Tobin's q, Corporate Investment, Financing, and Risk Management