Energy Structure and Photocatalytic Activity of Niobates and Tantalates Containing Sn(II) with a 5s2 Electron Configuration