Effect of surface defects in Pd-based membranes on the performance of a membrane reactor