Measurement of the B0 → K2*(1430) 0γ and B+ → K2*(1430) +γ branching fractions