Value Functions and Optimality Conditions for Semilinear Control Problems. II: Parabolic Case