Photophysical properties and electronic structures of the perovskite photocatalysts Ba{sub 3}NiM{sub 2}O{sub 9} (M=Nb,Ta)