Erosion, formation of deposited layers and fuel retention for beryllium under the influence of plasma impurities