Study of the cluster structure of10Be and16C neutron-rich isotopes by means of intermediate energies breakup reactions