Guidelines for Optimizing the Performance of Metal–Insulator–Semiconductor (MIS) Photoelectrocatalytic Systems by Tuning the Insulator Thickness