Microwave resonator sensor integrated with nanostructured semiconductor membranes for photodetection and carrier lifetime measurement