Understanding photocatalytic activity of MOFs: a combined experimental and theoretical study