Optimal state transfer of a single dissipative two-level system