Analytically solvable Hamiltonians for quantum two-level systems and their dynamics