Ambipolar suppression of superconductivity by ionic gating in optimally doped BaFe2(As,P)2 ultrathin films