Dynamics of a viscous vesicle in linear flows