Tailoring magnetic anisotropy at the ferromagnetic/ferroelectric interface