Microstructure and superconductivity of MgB2 synthesized by using Mg-based compound powders