AIM INVESTMENT FUNDS (INVESCO INVESTMENT FUNDS) AMENDED AND RESTATED MASTER INVESTMENT ADVISORY AGREEMENT