Integration by parts and smoothness of the law for a class of stochastic evolution equations