Mechanism Leading to Ferroelectricity Induced in Centrosymmetric Crystals by Antiferromagnetic Transitions