Regularity properties of Schrödinger and Dirichlet semigroups