O(α2) next-to-leading photonic corrections to small-angle Bhabha scattering in the structure function formalism