The structural origin of composition-driven magnetic transformation in BiFeO3-based multiferroics: a neutron diffraction study