This manuscript has been accepted for publication by PLoS Computational Biology