Superconductivity of MgB2 thin films prepared by ion implantation and pulsed plasma treatment