Smeared heat-kernel coefficients on the ball and generalized cone