Dynamics of open quantum systems by interpolation of von Neumann and classical master equations, and its application to quantum annealing