Laser cooling with three-level cascade transitions: a study for group II atoms and ytterbium