First principles analysis of electronic structure evolution and the indirect- to direct-gap transition in Ge$_{1-x}$Pb$_{x}$ group-IV alloys