Measurement of the B^{0}→K_{2}^{*}(1430)^{0}γ and B^{+}→K_{2}^{*}(1430)^{+}γ branching fractions