First-principles study of the structural and elastic properties of zirconia