Optimization of Phase Formation and Superconducting Properties in MgB2 Prepared by Phase Transformation from MgB4