Corrected a bug. Added plots for the manuscript.