Molecular orbital ordering in titania and the associated semiconducting behavior