Professional networks, science ability, and gender determinants of three types of leadership in academic science and engineering