Evolutionary conservation and conversion of Foxg1 function in brain development