Crystalline electric field in RBa2Cu3O7 (R = rare earth) determined by inelastic neutron scattering