OPTIMAL CONTROL OF MARKOVIAN SWITCHING SYSTEMS WITH APPLICATIONS TO PORTFOLIO DECISIONS UNDER INFLATION