First-principles calculations on phase transformation and elastic properties of CuO under pressure