Semiempirical and First Principles Study of the Crystal Field Acting on the 4f Electrons in Rare Earth Cuprates