Phase stability in ferroelectric bismuth titanate: a first-principles study.