Polarization switching of a vertical-cavity semiconductor laser as a Kramers hopping problem