Regime switching based portfolio selection for pension funds