Equations for probability distributions of local occupation time on a surface for diffusion processes and control problems