Theory of vesicle dynamics in flow and electric fields