Vesicles and red blood cells in flow: From individual dynamics to rheology