The semiconductor laser linewidth: a Green's function approach