Structure of halo nuclei 14Be and 32Ne