Ultrafast 4f multiplet excitation in rare-earth metals studied with X-rays