Quasi-bound states of Dirac electrons in electric and magnetic quantum dots