Photocatalytic degradation of dyes by using a membrane reactor