Phase analysis of superconducting polycrystalline MgB2