Structure of neutron-rich nuclei studied by radioactive beams