Northern Tier Energy planning upgrades at Minnesota refinery