Quasibound states of quantum dots in single and bilayer graphene