An optically controlled microwave matching technique