Microwave control of the superconducting proximity effect and minigap in magnetic and normal metals