Crystal fields at rare-earth sites in R2Fe14B compounds