Predicting the Thermal Conductivity of Si and Ge Nanowires