Bill O’Brien agrees to become Texans coach, leaving Penn State