Divalent, trivalent, and heavy fermion states in Eu compounds