Influence of quantum effects on the mechanism of adsorption and phase diagram of rare gases in carbon nanotubes