Understanding the multifunctionality in Cu-doped BiVO4 semiconductor photocatalyst.