BYU names former QB Ty Detmer as offensive coordinator