Petersburg is Virginia’s least healthy locality, according to a study that ranks the length and quality of American lives and the factors that influence them.